<!-- /* Description for file.
 * 假期类型-修改
 * @copyright     Copyright 2008-2010, PHInfo Services Inc. (http://www.phinfoservices.com)
 * @package       ues
 * @subpackage    ues/app/views/systemconfigs
 * @since         ues
 * @version       V0.0.1
 * @modifiedby    张朋2011年0701
 * @lastmodified  张海杰2011年0713
 */
 -->
 <?php
echo $html->css ( 'tab' );
echo $html->css ( 'jquery-validate/css/screen' );
?> 
<script type="text/javascript">
//Form验证
 $(document).ready(function() {
 	 $.validator.setDefaults({       
 		 submitHandler: function(form) {    
 		  form.submit();    
 		}       
 	});  
				$("#SystemconfigsUpdateholidaytypeForm").validate({
					rules: {
						name:{
							required: true,alowsome: true,stringMinLength:0,stringMaxLength:20
						}
					},
					messages: {
						name:{
							required:  "请输入请假类型名称",stringMinLength:"请假类型名称长度必须大于0个字符",stringMaxLength:"请假类型名称长度必须小于20个字符"	
						}
					},
					//设置验证触发事件 
					focusInvalid: false, 
					onkeyup: false, 
					//设置错误信息提示DOM  
					errorPlacement: function(error, element) { 
					error.appendTo( element.parent()); 
					}
		 		}); 
 });
</script>
<div id="tabmenubar">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabmenubartitle1"><?php echo  __('YourPosition');//您现在的位置：?></td>
		<td class="tabmenubartitle2"><?php echo __('Systemconfigs');//一级目录
										   echo '>';echo __('Personal Office');//二级目录
										   echo '>';echo __('holidaytypes');//三级级目录（可选）
										   echo '>';?>
									<?php echo $html->tag('span', __('Edit',true).__('holidaytypes',true));//当前操作地用span加粗?> 
	</tr>
</table>
</div>
<div class="tabflex">
  <?php echo $form->create('Systemconfigs',array('action'=>'updateholidaytype','type'=> 'post'));?>
	<fieldset>
 		<legend><?php __('Edit').__('holidaytypes');?></legend>
	 <table width="100%" cellspacing="0" cellpadding="0" border="0" style="text-align: left;font-size:12px;">
			<tr>
			<td><?php
				echo $form->hidden('id',array('name'=>'id','default'=>$data['Holidaytype']['id']));?></td>
			</tr>
			<tr>
				<td width="50"></td>
				<td width="100"><?php __('holidaytypes');?>：</td>
				<td colspan="4">
				<?php echo $form->input('name',array('name'=>'name','label'=>false,'class' => 'TextBoxL txtOut','default'=>$data['Holidaytype']['name']));?>
				</td>
			</tr>
		</table>
<!--	<input type="hidden" name="id" value="<?php echo $data['Holidaytype']['id'];?>"></input>-->
<!--	<input type="text" name="name" value="<?php echo $data['Holidaytype']['name'];?>"></input>-->
	</fieldset>
	<?php echo $form->button('返回',array('type'=>'button','class'=>'btn2','onclick'=>'history.back(-1)'));?>  <!-- 返回上一级-->
	<?php echo $form->button('重置',array('type'=>'reset','class'=>'btn2'));?>  <!-- __('reset', true)取消-->
	<?php echo $form->button('确定',array('type'=>'submit','class'=>'btn2'));?>  <!-- __('Add', true)增加-->
<?php echo $form->end();?>
</div>
